package com.xinqi.common.core.enums;

import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 讨论状态枚举
 *
 * @Author：yyzhen
 * @Package：com.xinqi.common.core.enums
 * @Project：xingqiclass-cloud-plus
 * @name：ReleaseStatusEnum
 * @Date：2023/3/14 14:21
 * @Filename：ReleaseStatusEnum
 */
@Getter
public enum DiscussReleaseStatusEnum {

    UNPUBLISHED(1, "未发布"),

    SCHEDULED_RELEASE(2, "定时发布"),

    IN_PROGRESS(3, "进行中"),

    CLOSED(4, "已结束");

    @Getter(onMethod_ = {@JsonValue})
    private final Integer code;

    @Getter
    private final String describe;

    DiscussReleaseStatusEnum(Integer code, String describe) {
        this.code = code;
        this.describe = describe;
    }

}
